/* 
* Class name: Ball *
* 
* Version info: v4.0 *
* 
* Description: Model of the balls 
* 
* Copyright by Group4 from CmpE450 course *
*/ 

package com.GameSpace.SameGame;

import com.GameSpace.SameGame.R;

public class Ball {
	//keeps the color of the ball
	private int color;
	//true if the ball will be displayed on the screen; Otherwise false
	private boolean isEmpty;
	//true if the ball is selected; otherwise false
	private boolean isSelected; 
	
	//constructor
	public Ball(){
		isEmpty=false;
		isSelected=false;
		color= R.color.blue;
	}
	//the getter method for color of the ball
	public int getColor(){
		return color;
	}
	//the setter method for color of the ball
	public void setColor( int newColor ){
		color = newColor;
	}
	//the getter method for the ball is selected or not
	public boolean getIsSelected(){
		return isSelected;
	}
	//the setter method for the ball is selected or not
	public void setIsSelected( boolean newValue ){
		isSelected = newValue;
	}
	//the getter method for the ball is visible on the screen
	public boolean getIsEmpty(){
		return isEmpty;
	}
	//the setter method for the ball is visible on the screen
	public void setIsEmpty( boolean change ){
		isEmpty = change;
	}
}
